package com.report.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.report.dto.request.BrowseReq;
import com.report.dto.request.WebMemberCollectReq;
import com.report.dto.response.WebMemberBrowseRes;
import com.report.dto.response.zu.WeChatMiniReportRes;
import com.report.entity.Browse;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author summer
 * @since 2024/06/25 14:54:44
 */
public interface IBrowseService extends IService<Browse> {

    /**
     * 保存浏览记录
     * @param browseReq
     */
    void saveBrowse(BrowseReq browseReq);

    /**
     * 浏览记录
     * @param id
     * @return
     */
    Page<WebMemberBrowseRes> findBrowseList(WebMemberCollectReq webMemberCollectReq);

    /**
     * 阅读数量
     */
    void readNum();

    /**
     *  没有登录
     * @param request
     */
    void isReadNum(HttpServletRequest request);

    /**
     * 今日阅读数量
     * @param numberId
     * @return
     */
    Integer readDayNum(BrowseReq browseReq);
}
